Skip to content

feat(ide): add code-server as a browser-based IDE option - #449

Merged
skevetter merged 1 commit into
mainfrom
feat/code-server-ide
May 27, 2026
Merged

feat(ide): add code-server as a browser-based IDE option#449
skevetter merged 1 commit into
mainfrom
feat/code-server-ide

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

Adds code-server (coder.com's browser-based VS Code) as a new IDE option alongside the existing openvscode-server. Mirrors openvscode's plumbing: new + "pkg/ide/codeserver" + package handles tarball install, settings, extension install, and a background + "Start()" + ; wired into the container setup switch, the browser-tunnel opener, the SSH auth-sock reuse helper, and the tunnel port-forward list.

Default port 10801 (sits next to openvscode's 10800; + "FindAvailablePort" + resolves collisions between simultaneous workspaces).

Also rips out the + "AllowedIDE.Experimental" + field entirely — leftover from the devpod fork with no remaining purpose. JSON tag had + "omitempty" + so API consumers see no change.

Design choices

  • + "--auth none" + : matches openvscode's posture. The published path is the devsy port-forward tunnel (authenticated); intra-container access is unauthenticated.
  • + "--user-data-dir" + is pinned explicitly so the settings install path stays stable regardless of + "XDG_DATA_HOME" + .
  • Constructor takes a + "ServerOptions" + struct (matches + "vscode.NewVSCodeServer" + pattern) rather than 6 positional args.
  • Extension install: aggregates failures and only errors on 100% failure; partial failures stay as logged warnings (parity with openvscode).
  • Install: checks HTTP status, cleans up partial extraction on failure.

Files

  • + "pkg/ide/codeserver/codeserver.go" + — new package
  • + "cmd/agent/container/codeserver_async.go" + — background extension install
  • + "pkg/config/ide.go" + , + "pkg/ide/ideparse/parse.go" + , + "pkg/ide/types.go" + — IDE registration + auth-sock reuse
  • + "pkg/ide/opener/opener.go" + , + "pkg/ide/opener/browser_tunnel_state.go" + — browser-tunnel dispatch + label
  • + "cmd/agent/container/setup.go" + , + "cmd/agent/container/container.go" + — container setup wiring
  • + "pkg/tunnel/services.go" + — port-forward registration

@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@skevetter, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 39 minutes and 16 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4af2c1d9-ca8e-4283-9f7c-987d5f249ff9

📥 Commits

Reviewing files that changed from the base of the PR and between 33fed3a and 6e41da9.

⛔ Files ignored due to path filters (4)
  • desktop/src/renderer/public/icons/ides/code-server.svg is excluded by !**/*.svg
  • desktop/src/renderer/public/icons/ides/none.svg is excluded by !**/*.svg
  • desktop/src/renderer/public/icons/ides/none_dark.svg is excluded by !**/*.svg
  • desktop/src/renderer/public/icons/ides/vscodebrowser.svg is excluded by !**/*.svg
📒 Files selected for processing (11)
  • cmd/agent/container/codeserver_async.go
  • cmd/agent/container/container.go
  • cmd/agent/container/setup.go
  • desktop/src/renderer/src/lib/components/workspace/WorkspaceWizard.svelte
  • pkg/config/ide.go
  • pkg/ide/codeserver/codeserver.go
  • pkg/ide/ideparse/parse.go
  • pkg/ide/opener/browser_tunnel_state.go
  • pkg/ide/opener/opener.go
  • pkg/ide/types.go
  • pkg/tunnel/services.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify

netlify Bot commented May 27, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 6e41da9
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a175d7d81aeff000857ff56

@skevetter
skevetter force-pushed the feat/code-server-ide branch from b98b003 to 548249b Compare May 27, 2026 21:04
Mirrors the existing openvscode-server plumbing: new pkg/ide/codeserver
package handles tarball install, settings, extension install and a
background Start(); wired into the container setup switch, the
browser-tunnel opener, the SSH auth-sock reuse helper, and the tunnel
port-forward list. Default port 10801 to sit next to openvscode's 10800.

Also removes the AllowedIDE.Experimental field entirely — leftover from
the devpod fork with no remaining purpose. JSON tag had omitempty so
API consumers see no change.
@skevetter
skevetter force-pushed the feat/code-server-ide branch from 548249b to 6e41da9 Compare May 27, 2026 21:09
@skevetter skevetter changed the title feat(ide): add code-server (coder.com) as a browser-based IDE option feat(ide): add code-server as a browser-based IDE option May 27, 2026
@skevetter
skevetter marked this pull request as ready for review May 27, 2026 21:50
@skevetter
skevetter merged commit a3c959e into main May 27, 2026
59 checks passed
@skevetter
skevetter deleted the feat/code-server-ide branch May 27, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant